#import <Cocoa/Cocoa.h>

#import "GameController.h"
#import "BoardData.h"
#import "History.h"
#import "PluginController.h"

#define kAnimationSteps 6
#define kBoardMaxCells 12

@interface Board : NSView
{
    IBOutlet id gameController;
    NSPoint center;
    NSTimer *timer;
    History *history;
    BOOL drag;
    int animation;
    int squareSize;
	int boardSize;
    NSPoint markPos;
    
    NSImage *whitePiece;
    NSImage *blackPiece;
    NSImage *board;
    NSImage *mark;
}

- (void)awakeFromNib;
- (void)dealloc;

- (void)drawRect:(NSRect)rect;
- (void)mouseUp:(NSEvent *)event;
- (void)mouseDown:(NSEvent *)event;
- (BOOL)isOpaque;

- (void)frameChanged:(NSNotification *) notification;
- (void)update;
- (void)animate;
- (BOOL)isAnimating;
@end
